package cn.tedu._05mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 购物车请求
 */
@Controller
public class CartsController {
    //请求的地址: http://localhost:8080/v1/carts/add
    @RequestMapping("/v1/carts/add")
    @ResponseBody
    public String addProduct(){
        return "添加购物车成功";
    }
}
